package jgl.vajra.management.widget.base;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

/**
 * Created by Mloong on 2018/7/28.
 */

public abstract class BaseCommonActivity<D extends ViewDataBinding> extends BaseActivity {

    protected D mBinding;

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding = DataBindingUtil.setContentView(this, getLayoutId());
        initView();
        initData();
        initEvent();
        registerEvent();
    }


}
